//----------------------------------------------------------------
#include "TestGame.h"
//----------------------------------------------------------------
TestGame::TestGame (HINSTANCE hInstance)
:
Game (hInstance){

}
//----------------------------------------------------------------
TestGame::~TestGame (){

}
//----------------------------------------------------------------
bool TestGame::OnStartUp (){
	piso = new Box(400,500,800,200,0x00ff00,true,"la re caja");
	piso->SetVertexColor(2,0x007700);
	piso->SetVertexColor(3,0x007700);
	caja = new Box(150,300,200,200,0xffff00,true,"la re caja");
	caja->SetVertexColor(2,0xbbbb00);
	caja->SetVertexColor(3,0xbbbb00);

	puerta = new Box(200,350,50,100,0x8d4513,true,"la re caja");

	ventana = new Box(100,350,50,50,0x87ceeb,true,"la re caja");
	ventana->SetVertexColor(1,0xffffff);

	tri =  new Triangle(150,150,250,100,0xff0000,true,"tri");
	tri->SetVertexColor(1,0xff5555);
	tri->SetVertexColor(0,0xff5555);
	cir =  new Circle(600,100,80,80,0xaaaaaa,30,true,"tri");
	cir2 =  new Circle(680,100,80,80,0x3333ff,30,true,"tri");
	cir->SetVertexColor(0,0x777777);
	picaporte =  new Circle(212,350,6,6,0x888888,15,true,"tri");
	nuve1 =  new Circle(680,250,80,40,0x3333ff,40,true,"tri");
	nuve1->SetVertexColor(0,0xffffff);
	nuve2 =  new Circle(300,150,100,60,0x3333ff,40,true,"tri");
	nuve2->SetVertexColor(0,0xffffff);
	nuve3 =  new Circle(500,200,60,30,0x3333ff,40,true,"tri");
	nuve3->SetVertexColor(0,0xffffff);
	arbusto =  new Circle(320,400,100,60,0x00aa00,40,true,"tri");

	return true;
}
//----------------------------------------------------------------
bool TestGame::OnLoop (){
	nuve1->Draw(renderer);
	arbusto->Draw(renderer);
	nuve3->Draw(renderer);
	nuve2->Draw(renderer);
	piso->Draw(renderer);
	caja->Draw(renderer);
	puerta->Draw(renderer);
	ventana->Draw(renderer);
	tri->Draw(renderer);
	cir->Draw(renderer);
	cir2->Draw(renderer);
	picaporte->Draw(renderer);
	return true;
}
//----------------------------------------------------------------
bool TestGame::OnShutDown (){
	return true;
}
